package com.ruoyi.system.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.system.domain.ReceiptOrder;
import com.ruoyi.system.dto.ReceiptOrderDTO;
import com.ruoyi.system.vo.ReceiptOrderVo;

/**
 * 入库单Mapper接口
 * 
 * @author ruoyi
 * @date 2024-12-12
 */
public interface ReceiptOrderMapper 
{
    /**
     * 查询入库单
     * 
     * @param id 入库单主键
     * @return 入库单
     */
    public ReceiptOrder selectReceiptOrderById(Long id);

    /**
     * 查询入库单列表
     * 
     * @param receiptOrder 入库单
     * @return 入库单集合
     */
    public List<ReceiptOrderVo> selectReceiptOrderList(ReceiptOrder receiptOrder);

    /**
     * 新增入库单
     * 
     * @param receiptOrder 入库单
     * @return 结果
     */
    public int insertReceiptOrder(ReceiptOrder receiptOrder);

    /**
     * 修改入库单
     * 
     * @param receiptOrder 入库单
     * @return 结果
     */
    public int updateReceiptOrder(ReceiptOrder receiptOrder);

    /**
     * 入库
     *
     * @param receiptOrder 入库单
     * @return 结果
     */
    public int ReceiptOrder(ReceiptOrderDTO receiptOrder);

    /**
     * 删除入库单
     * 
     * @param id 入库单主键
     * @return 结果
     */
    public int deleteReceiptOrderById(Long id);

    /**
     * 批量删除入库单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteReceiptOrderByIds(Long[] ids);

    /**
     * 看板数据统计查询
     *
     * @param status 传入状态
     * @return 结果
     */
    public int selectStatus(int status);

    /**
     * 看板趋势统计查询
     *
     * @return 结果
     */
    public List<Map<String,Object>> selectDate(String date1, String date2);
}
